@extends('layouts.master')

@section('title', '用户登录')
@section('body')
    <div class="container">

        <div class="row">
            <div class="col-sm-6 col-sm-offset-3 col-md-4 col-md-offset-4">

                <div style="margin-top: 100px;">

                    @if (count($errors) > 0)
                        <ul class="alert-danger">
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    @endif

                    <form id="demo" method="post" class="form-horizontal" role="form">
                        <div class="form-group">
                            <div class="col-xs-12">
                                <input type="email" name="email" id="inputEmail" class="form-control" placeholder="邮箱" value="{{ old('email') }}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <input type="password" name="password" id="inputPassword" class="form-control"
                                       placeholder="密码"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="inputRemember" class="control-label">
                                    <input type="checkbox" name="remember" id="inputRemember"/>
                                    <span class="text-warning">记住我</span>
                                </label>

                                {!! csrf_field() !!}
                                <button type="submit" class="btn btn-success pull-right">登录</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
@stop
